package calvin.study.springboot.model.configprop;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ConfigPropService {
	
	//将属性与第三方组件进行绑定
	@ConfigurationProperties("another")
	@Bean
	public AnotherComponent anotherComponent() {
		return new AnotherComponent();
	}

}
